import Layout from '@/views/layout/Layout';

// 帮助中心路由
const helpRouter = [
  {
    path: '/helpCenter',
    redirect: '/helpCenter/helpPage',
    name: 'helpCenter',
    component: Layout,
    meta: { title: '帮助中心', icon: 'sidebar-sale' },
    hidden: true,
    children: [
      {
        path: 'helpPage',
        component: () => import('@/views/help/index'),
        name: 'help',
        meta: { title: '共创平台', keepAlive: false, headerBarShow: true, activeMenu: '/helpCenter/helpPage', isHideSidebar: true }, // isHideSidebar: 隐藏侧边栏以及用于判断顶部的共创平台点击跳转为跳回首页
        hidden: true
      },
      {
        path: 'helpCreate',
        component: () => import('@/views/help/create'),
        name: 'helpCreate',
        meta: { title: '共创平台', keepAlive: false, headerBarShow: true, activeMenu: '/helpCenter/helpPage', isHideSidebar: true },
        hidden: true
      },
      {
        path: 'helpEdit/:id',
        component: () => import('@/views/help/create'),
        name: 'helpEdit',
        meta: { title: '共创平台', keepAlive: false, headerBarShow: true, activeMenu: '/helpCenter/helpPage', isHideSidebar: true },
        hidden: true
      },
      {
        path: 'helpDetail/:id',
        component: () => import('@/views/help/detail'),
        name: 'helpDetail',
        meta: { title: '共创平台', keepAlive: false, headerBarShow: true, activeMenu: '/helpCenter/helpPage', isHideSidebar: true },
        hidden: true
      }
    ]
  }
];

export default helpRouter;
